#include "m01_rtc.h"

namespace igslib
{
	IRTCTimerManager* CRTCTimerManager::instance = 0;
	IRTCTimerManager* CRTCTimerManager::GetInstance() 
	{
		if ( instance == 0 )
		{
			instance = new CRTCTimerManager();
		}
		return instance ;
	}

    IRTCTimer* CRTCTimerManager::NewM01RTCTimer()
    {
        IRTCTimer* rtn = nullptr;
        try
        {
            rtn = new M01RTCTimer();
            cpns.insert(rtn);
        }
        catch(const std::exception&)
        {
        }
        return rtn;
    }
}

extern "C"{
    igslib::IRTCTimerManager* GetRTCTimerManagerInstance()
    {
		return igslib::CRTCTimerManager::GetInstance();
    }
}
